package com.yiwyn.interceptordemo;

import com.yiwyn.interceptordemo.mybatisInterceptor.LimitInterceptor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Slf4j
@Configuration
public class MybatisConfig {


    @Bean
    public LimitInterceptor limitInterceptor() {
        log.info("初始化限制器");
        return new LimitInterceptor();
    }
}
